// 客户应付管理-待遇付款申请
export const treatmentApplyThead = [
  {
    type: 'selection',
    minWidth: 60,
    fixed: 'left',
    align: 'center'
  },
  {
    title: '客户名称',
    key: 'companyName',
    minWidth: 120
  },
  {
    title: '姓名',
    key: 'employeeName',
    minWidth: 120
  },
  {
    title: '身份证号码',
    key: 'idCardNo',
    minWidth: 200
  },
  {
    title: '所属客服',
    key: 'serverName',
    minWidth: 120,
  },
  {
    title: '参保险种',
    key: 'insuranceType',
    minWidth: 120,
  },
  {
    title: '待遇名称',
    key: 'treatmentName',
    minWidth: 180,
  },
  {
    title: '参保编号',
    key: 'insuredNo',
    minWidth: 120,
  },
  {
    title: '待遇实到',
    key: 'payableTotal',
    minWidth: 120,
  },
  {
    title: '待遇实付',
    key: 'paidTotal',
    minWidth: 120,
  },
  {
    title: '剩余可请款金额',
    key: 'surplusAmt',
    minWidth: 150,
  },
  {
    title: '剩余可付金额',
    key: 'surplusPayAmt',
    minWidth: 120,
  },
  {
    title: '操作',
    key: 'action',
    minWidth: 200,
    slot: 'action',
    fixed: 'right',
    align: 'center',
  }
]

export const LookPayListThead = [
  {
    type: 'selection',
    minWidth: 60,
    align: 'center'
  },
  {
    title: '状态',
    key: 'unitName',
    tooltip: true,
    minWidth: 150,
    render: (h, params) => {
      let arr = {'1':'待申请','2':'已申请','3':'已付款','4':'待付款','-1':'已驳回','-2':'已退回'}
      const text = arr[params.row.status]
      return h('span', text)
    }
  },
  {
    title: '账号名称',
    key: 'accountName',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '开户行',
    key: 'accountBank',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '收款账号',
    key: 'accountNo',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '付款方式',
    key: 'payType',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '请款金额',
    key: 'applyTotal',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '付款说明',
    key: 'remark',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '付款人',
    key: 'payUser',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '付款金额',
    key: 'total',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '付款时间',
    key: 'payDate',
    tooltip: true,
    minWidth: 150,
    render: (h, params) => {
      const text = params.row.payDate ? moment(params.row.payDate).format('YYYY-MM-DD') : ''
      return h('span', text)
    }
  },
  {
    title: '付款银行',
    key: 'payBank',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '退回时间',
    key: 'backTime',
    tooltip: true,
    minWidth: 150,
    render: (h, params) => {
      const text = params.row.backTime ? moment(params.row.backTime).format('YYYY-MM-DD') : ''
      return h('span', text)
    }
  },
  {
    title: '退回原因',
    key: 'backRemark',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '操作',
    key: 'action',
    fixed: 'right',
    slot: 'action',
    width: 160,
    align: 'center'
  }
]

// 确认付款
export const PayListThead = [
  {
    type: 'selection',
    minWidth: 60,
    align: 'center'
  },
  {
    title: '状态',
    key: 'unitName',
    tooltip: true,
    minWidth: 150,
    render: (h, params) => {
      let arr = {'1':'待申请','2':'已申请','3':'已付款','4':'待付款','-1':'已驳回','-2':'已退回'}
      const text = arr[params.row.status]
      return h('span', text)
    }
  },
  {
    title: '账号名称',
    key: 'accountName',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '开户行',
    key: 'accountBank',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '收款账号',
    key: 'accountNo',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '付款方式',
    key: 'payType',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '请款金额',
    key: 'applyTotal',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '付款说明',
    key: 'remark',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '付款人',
    key: 'payUser',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '付款金额',
    key: 'total',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '付款时间',
    key: 'payDate',
    tooltip: true,
    minWidth: 150,
    render: (h, params) => {
      const text = params.row.payDate ? moment(params.row.payDate).format('YYYY-MM-DD') : ''
      return h('span', text)
    }
  },
  {
    title: '付款银行',
    key: 'payBank',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '退回时间',
    key: 'backTime',
    tooltip: true,
    minWidth: 150,
    render: (h, params) => {
      const text = params.row.backTime ? moment(params.row.backTime).format('YYYY-MM-DD') : ''
      return h('span', text)
    }
  },
  {
    title: '退回原因',
    key: 'backRemark',
    tooltip: true,
    minWidth: 150
  },
  {
    title: '操作',
    key: 'action',
    slot: 'action',
    width: 150,
    // fixed: 'right',
    align: 'center'
  }
]
